import java.util.Scanner;

public class Ex6_5{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.printf("Enter ten numbers: ");
		final int MAXNUM = 10;
		double[] num = new double[MAXNUM];
		int last = 0;
		for (int i = 0; i < MAXNUM; i++){
			double t = input.nextDouble();
			int j;
			for (j = 0; j < last; j++)
				if (num[j] == t)
					break;
			if (j >= last)
				num[last++] = t;
		}

		System.out.printf("The distinct numbers are: ");
		for (int i = 0; i < last; i++){
			System.out.printf("%.0f ", num[i]);
		}
		System.out.println();
	}
}